<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<div class="new-index-banner">
	<div id="banner" class="bannerSlider">
		<ul class="slider-content" >
			<c:choose>
			<c:when test="${!empty bannerList && fn:length(bannerList) ne 0}">
			<c:forEach var="banner" items="${bannerList}">
				<c:if test="${not empty banner.bannerUrl}">
					<li>
						<a href="${banner.bannerUrl}"  title="${banner.bannerName}" rel="nofollow" target="_blank">
							<img  src="<%=path%>/uncheck/pictures/servlet?id=${banner.bannerPicture}">
						</a>
					</li>
				</c:if>
				<c:if test="${empty banner.bannerUrl}">
					<li>
						<a href="javascript:void(0)"  title="${banner.bannerName}" rel="nofollow" target="_blank">
							<img  src="<%=path%>/uncheck/pictures/servlet?id=${banner.bannerPicture}">
						</a>
					</li>
				</c:if>
			</c:forEach>
			</c:when>
			<c:otherwise>
				<li>
					<a href="#"  title="文娱宝" rel="nofollow" target="_blank">
						<img alt="首页大图" src="<%=path%>/images/temp/20160615203424.jpg">
					</a>
				</li>
				<li>
					<a href="#"  title="众筹界" rel="nofollow" target="_blank">
						<img alt="首页大图" src="<%=path%>/images/temp/20160613183329.jpg">
					</a>
				</li>
			</c:otherwise>
			</c:choose>
		</ul>
		<div class="slider-ctrl">
			<div id="btn" class="ctrl-dot"></div>
		</div>
		<a style="display: inline; opacity: 1;" href="javascript:;" class="prev" id="bannerLeftBtn"> <i></i>
		</a>
		<a style="display: inline; opacity: 0.993809;" href="javascript:;" class="next" id="bannerRightBtn">
			<i></i>
		</a>
	</div>
	<div class="new-index-topJiao">
		<p></p>
		<p></p>
	</div>
</div>
<script type="text/javascript">
	/*首页bannner*/
    var sl = new Sld();
    sl.init('bannerSlider', {})
    $(window).on('resize', function () {
        sl.resizeFn();
    });
	/*首页bannner end */
</script>